// CRC32: 110E10BD | Matched 8 variants of 1 shaders: Custom/BloodsoakForBabakDeath
// 
//     Unity headers extracted from Bloodsoak_ForBabakDeath.shader
//     Shader "Custom/BloodsoakForBabakDeath" {
//       Properties {
//        _BloodColor ("BloodColor", Color) = (0.5,0.5,0.5,1)
//        _NoiseTex ("NoiseTex", 2D) = "white" { }
//        _Diffuse ("Diffuse", 2D) = "white" { }
//        _BloodFlowPct ("BloodFlowPct", Float) = 0
//        _normalmap ("normal map", 2D) = "white" { }
//        _gloss ("gloss", Float) = 0
//       [HideInInspector]  _Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
//       }
//       Fallback "Diffuse"
//       SubShader 1/1 {
//         LOD 200
//         Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" }
//         Pass 1/1 {
//           Name "FORWARDBASE"
//           Tags { "LIGHTMODE"="ForwardBase" "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "SHADOWSUPPORT"="true" "RenderType"="Transparent" }
//           ZWrite Off
//           Blend SrcAlpha OneMinusSrcAlpha
//           GpuProgramID 16740
//           Program "fp" {
//             SubProgram "d3d9 " {
// 01:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_OFF" "SHADOWS_OFF" }
// 10:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_OFF" "SHADOWS_SCREEN" }
// 04:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_ON" "SHADOWS_OFF" }
// 40:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_ON" "SHADOWS_SCREEN" }
// 02:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_OFF" "SHADOWS_OFF" }
// 20:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_OFF" "SHADOWS_SCREEN" }
// 08:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_ON" "SHADOWS_OFF" }
// 80:           Keywords { "DIRECTIONAL" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_ON" "FOG_LINEAR" "LIGHTMAP_ON" "SHADOWS_SCREEN" }
//               Vector 8 [_BloodColor]
//               Float 11 [_BloodFlowPct]
//               Vector 10 [_Diffuse_ST]
//               Vector 6 [_LightColor0]
//               Vector 9 [_NoiseTex_ST]
//               Vector 0 [_Time]
//               Vector 7 [_TimeEditor]
//               Vector 1 [_WorldSpaceCameraPos]
//               Vector 2 [_WorldSpaceLightPos0]
//               Float 13 [_gloss]
//               Vector 12 [_normalmap_ST]
//               Vector 3 [glstate_lightmodel_ambient]
//               Vector 4 [unity_FogColor]
//               Vector 5 [unity_FogParams]
//               SetTexture 0 [_NoiseTex] 2D 0
//               SetTexture 1 [_Diffuse] 2D 1
//               SetTexture 2 [_normalmap] 2D 2
//             }
//           }
//         }
//       }
//     }
// 
// Headers extracted with DarkStarSword's extract_unity_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity_shaders.py

    ps_3_0
    def c14, 0.00999999978, 10, 1, 0
    def c15, 2, 0, 0, 0
    dcl_texcoord v0.xy
    dcl_texcoord1 v1.xyz
    dcl_texcoord2 v2.xyz
    dcl_texcoord3 v3.xyz
    dcl_texcoord4 v4.xyz
    dcl_texcoord5 v5.x
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2

def c220, 0, 1, 0.0625, 0.5
dcl_2d s13

texldl r31, c220.z, s13

// Unity reflection/specular fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -I ../.. --fix-unity-reflection --only-autofixed --ignore-register-errors Custom_BloodsoakForBabakDeath/fp/110E10BD.txt
mov r30, c1
mov r29, c220.x
mul r29.x, r31.x, -r31.y
dp4 r28.x, c180, r29
dp4 r28.y, c181, r29
dp4 r28.z, c182, r29
dp4 r28.w, c183, r29
dp4 r29.x, c190, r28
dp4 r29.y, c191, r28
dp4 r29.z, c192, r28
add r30.xyz, r30, -r29

    mad r0.xy, v0, c9, c9.zwzw
    texld r0, r0, s0
    add r0.x, r0.x, c11.x
    add_sat r0.x, r0.x, -c14.z
    frc r0.y, -r0.x
    add r0.x, r0.y, r0.x
    mad r0.yz, v0.xxyw, c10.xxyw, c10.xzww
    texld r1, r0.yzzw, s1
    mul_pp oC0.w, r0.x, r1.w
    mov r0.y, c0.y
    add r0.x, r0.y, c7.y
    mad r0.xy, r0.x, c14.x, v0
    mad r0.xy, r0, c12, c12.zwzw
    texld r0, r0, s2
    mul r1.xyz, r0.y, v4
    mad r0.xyw, r0.x, v3.xyzz, r1.xyzz
    nrm r1.xyz, v2
    mad r0.xyz, r0.z, r1, r0.xyww
    nrm r1.xyz, r0
    add r0.xyz, r30, -v1
    dp3 r0.w, r0, r0
    rsq r0.w, r0.w
    nrm r2.xyz, c2
    mad r0.xyz, r0, r0.w, r2
    dp3 r0.w, r1, r2
    nrm r2.xyz, r0
    dp3 r0.x, r2, r1
    max r1.x, r0.x, c14.w
    mov r0.yz, c14
    mad r0.x, c13.x, r0.y, r0.z
    exp r0.x, r0.x
    pow r2.x, r1.x, r0.x
    mul r0.xyz, r2.x, c6
    mul r0.xyz, r0, c8.w
    mul r1.xyz, r0.w, c6
    cmp r1.xyz, r0.w, r1, c14.w
    mov r2.xyz, c3
    mad r1.xyz, r2, c15.x, r1
    mad_pp r0.xyz, r1, c8, r0
    add r0.xyz, r0, -c4
    mad_sat r0.w, v5.x, c5.z, c5.w
    mad_pp oC0.xyz, r0.w, r0, c4
